Optimal. Leaf size=63 \[ \frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{5/2}}+\frac{d x (2 b c-a d)}{b^2}+\frac{d^2 x^3}{3 b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0918982, antiderivative size = 63, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105 \[ \frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{5/2}}+\frac{d x (2 b c-a d)}{b^2}+\frac{d^2 x^3}{3 b} \]
Antiderivative was successfully verified.
[In] Int[(c + d*x^2)^2/(a + b*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{d^{2} x^{3}}{3 b} - \frac{\left (a d - 2 b c\right ) \int d\, dx}{b^{2}} + \frac{\left (a d - b c\right )^{2} \operatorname{atan}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{\sqrt{a} b^{\frac{5}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((d*x**2+c)**2/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0829892, size = 59, normalized size = 0.94 \[ \frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} b^{5/2}}+\frac{d x \left (-3 a d+6 b c+b d x^2\right )}{3 b^2} \]
Antiderivative was successfully verified.
[In] Integrate[(c + d*x^2)^2/(a + b*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0., size = 95, normalized size = 1.5 \[{\frac{{d}^{2}{x}^{3}}{3\,b}}-{\frac{a{d}^{2}x}{{b}^{2}}}+2\,{\frac{dxc}{b}}+{\frac{{a}^{2}{d}^{2}}{{b}^{2}}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-2\,{\frac{acd}{b\sqrt{ab}}\arctan \left ({\frac{bx}{\sqrt{ab}}} \right ) }+{{c}^{2}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((d*x^2+c)^2/(b*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)^2/(b*x^2 + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.232564, size = 1, normalized size = 0.02 \[ \left [\frac{3 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \log \left (\frac{2 \, a b x +{\left (b x^{2} - a\right )} \sqrt{-a b}}{b x^{2} + a}\right ) + 2 \,{\left (b d^{2} x^{3} + 3 \,{\left (2 \, b c d - a d^{2}\right )} x\right )} \sqrt{-a b}}{6 \, \sqrt{-a b} b^{2}}, \frac{3 \,{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{a b} x}{a}\right ) +{\left (b d^{2} x^{3} + 3 \,{\left (2 \, b c d - a d^{2}\right )} x\right )} \sqrt{a b}}{3 \, \sqrt{a b} b^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)^2/(b*x^2 + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 2.18975, size = 172, normalized size = 2.73 \[ - \frac{\sqrt{- \frac{1}{a b^{5}}} \left (a d - b c\right )^{2} \log{\left (- \frac{a b^{2} \sqrt{- \frac{1}{a b^{5}}} \left (a d - b c\right )^{2}}{a^{2} d^{2} - 2 a b c d + b^{2} c^{2}} + x \right )}}{2} + \frac{\sqrt{- \frac{1}{a b^{5}}} \left (a d - b c\right )^{2} \log{\left (\frac{a b^{2} \sqrt{- \frac{1}{a b^{5}}} \left (a d - b c\right )^{2}}{a^{2} d^{2} - 2 a b c d + b^{2} c^{2}} + x \right )}}{2} + \frac{d^{2} x^{3}}{3 b} - \frac{x \left (a d^{2} - 2 b c d\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x**2+c)**2/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.221278, size = 97, normalized size = 1.54 \[ \frac{{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{\sqrt{a b} b^{2}} + \frac{b^{2} d^{2} x^{3} + 6 \, b^{2} c d x - 3 \, a b d^{2} x}{3 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)^2/(b*x^2 + a),x, algorithm="giac")
[Out]